<template>
  <div class="test">
    <p>hello world!</p>
    <el-switch @change="change" v-model="isAgree" active-value=1 inactive-value=0 active-color="#13ce66" inactive-color="#ff4949"></el-switch>
  </div>
</template>

<script type="text/ecmascript-6">
export default {
  data() {
    return {
      isAgree: 0
    };
  },
  created() {

  },
  methods: {
    change($ev){
      this.loading.open();
      setTimeout(()=>{
        this.loading.close();
      },2000)
    }
  }
};
</script>

<style lang="less">
@r: 1rem/75;
.test {
}
</style>
